<?php use_helper('I18N', 'Date') ?>
<?php include_partial('teacher_program/assets') ?>

<div id="sf_admin_container">
  <h1><?php echo __('Assignments', array(), 'messages') ?></h1>

  <?php include_partial('teacher_program/flashes') ?>

  <div id="sf_admin_header">
    <?php include_partial('teacher_program/list_header', array('pager' => $pager)) ?>
  </div>
<?php if(sfContext::getInstance()->getUser()->hasCredential('admin')){ ?>
  <div id="sf_admin_bar_with_filter">
    <?php include_partial('teacher_program/filters', array('form' => $filters, 'configuration' => $configuration)) ?>
    <?php include_component('teacher_program','statistics') ?>
  </div>
<?php } ?>
  <div class="clear"></div>
 <div id="sf_admin_content">    

  <form action="<?php echo url_for('link_teacher_program_collection', array('action' => 'batch')) ?>" method="post">
    <?php include_partial('teacher_program/list', array('pager' => $pager, 'sort' => $sort, 'helper' => $helper)) ?>      
<?php if(sfContext::getInstance()->getUser()->hasCredential('admin')){ ?>
    <ul class="sf_admin_actions">
      <?php include_partial('teacher_program/list_batch_actions', array('helper' => $helper)) ?>
      <?php include_partial('teacher_program/list_actions', array('helper' => $helper)) ?>
    </ul>
<?php } ?>
  </form>      
   <?php include_partial('color_key');?>   
  </div>

  <div id="sf_admin_footer">
    <?php include_partial('teacher_program/list_footer', array('pager' => $pager)) ?>
  </div>
</div>
